import request from '@/api/request'

// 分类导航数据获取
function indexaction(data){
    return request({
        method:'get',
        url:'/category/indexaction',
        data
    })
}

// 通过分类的id来查询分类列表数据
function currentaction(data){
    return request({
        method:'get',
        url:'/category/currentaction',
        data
    })
}

// 获取导航数据
function categoryNav(data){
    return request({
        method:'get',
        url:'/category/categoryNav',
        data
    })
}

// 获取分类商品列表
function goodsList(data){
    return request({
        method:'get',
        url:'/goods/goodsList',
        data
    })
}

export {
    indexaction,
    currentaction,
    categoryNav,
    goodsList
}